package com.itheima.test4;

public class Sheep {

    int age=10;//成员变量

    public Sheep() {
    }

    public Sheep(int age) {
        this.age = age;
    }

    public void eat(){//成员方法

        System.out.println("羊吃草");
    }
}
